package com.pet.web.controller.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录对象
 *
 * @author pet
 */
@ApiModel
public class UserPwdBody {
    /**
     * 用户密码
     */
    @ApiModelProperty(required = true, value = "旧密码")
    private String oldPassword;

    /**
     * 用户密码
     */
    @ApiModelProperty(required = true, value = "新密码")
    private String newPassword;

    @NotBlank(message = "旧密码不能为空")
    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    @NotBlank(message = "新密码不能为空")
    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
}
